package com.maxatime.service.serviceImpl;

import com.maxatime.dao.LoginMapper;
import com.maxatime.pojo.entity.Login;
import com.maxatime.service.LoginService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.Map;

/**
 * @ClassName LoginServiceImpl
 * @Description TODO
 * @Author saxas
 * @Date 2024/8/13 15:13
 **/
@Service
public class LoginServiceImpl implements LoginService {

    @Autowired
    LoginMapper loginMapper;
    @Override
    public Login log(String username, String password) {
        Map<String, Object> m  = new HashMap<>();
        Login login = new Login();
        login.setUsername(username);
        login.setPassword(password);
        Login login1 = loginMapper.log(login);

        return login1;
    }
}
